home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Sample Code / Music Architecture / Mixed Bag / •Instrument Editor / Instrument Editor Controls.h < prev    next >
Encoding:
Text File  |  1995-01-18  |  1.6 KB  |  87 lines  |  [TEXT/KAHL]

  1. /*
  2.     File:        BigEasyStandardControls.h
  3.  
  4.     Contains:    xxx put contents here xxx
  5.  
  6.     Written by:    xxx put writers here xxx
  7.  
  8.     Copyright:    © 1991 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     This file is used in these builds: Warhol
  11.  
  12.     Change History (most recent first):
  13.  
  14.          <3>    12/19/91    JB        removing think 4.0 code
  15.          <2>     5/28/91    JB        Added prototypes so we can require them
  16.  
  17.     To Do:
  18. */
  19.  
  20. /*
  21.   * file: BigEasyStandardControls.h
  22.   *
  23.   * started 25 May 1990 12:07:24 Friday at 310 Nobel
  24.   * 
  25.   * david van brink
  26.   *
  27.   */
  28.  
  29.  
  30. enum
  31. /*
  32.   * different number types that the slider can operate in.
  33.   */
  34.     {
  35.     longNum,
  36.     fixedNum,
  37.     fracNum,
  38.     floatNum
  39.     };
  40.  
  41. typedef void (*becsDrawValueProcPtr)(easyControl);        
  42.  
  43. typedef struct
  44. /*
  45.   * specifies a style of slider
  46.   */
  47.     {
  48.     char numberType;
  49.     short sWidth,sHeight;                /* size of slider, figured from rect    */
  50.     short tWidth,tHeight;                /* size of text rect, and point size    */
  51.     becsDrawValueProcPtr drawValue;                        /* to convert value to string        */
  52.     } tSliderStyle;
  53.  
  54. typedef struct
  55. /*
  56.   * specifies a style of toggle
  57.   */
  58.     {
  59.     short p;                            /* ID of PICT resource to draw (or zero to not)        */
  60.     char c[40];                        /* text string to insert (or zero for none)            */
  61.     } tToggleStyle;
  62.  
  63. enum
  64. /*
  65.   * variation flags for slider control
  66.   */
  67.     {
  68.     drawRightSlider = 1                    /* draw the right-hand part of the slide range */
  69.     };
  70.  
  71. enum
  72. /*
  73.   * Different variation flags for the toggle control
  74.   */
  75.     {
  76.     noOptionsToggle = 0,
  77.     toggleToggle = 1,                    /* the button has two states        */
  78.     roundToggle = 2,
  79.     dontTrackToggle = 4,                /* just take the 1st click            */
  80.     checkboxToggle = 8                    /* mark "X" in toggle            */
  81.     
  82.     };
  83.  
  84. extern easyControlType sliderType;
  85. extern easyControlType toggleType;
  86.  
  87.